{extend name='Common/index' /} {block name='content'}
<section class="content">
  <div class="row">
    <div class="col-xs-12">
      <div class="box">
        <div class="box-body">
          <table class="table table-bordered table-hover tableData">
            <thead>
              <tr>
                <th>ID</th>
                <th>订单号</th>
                <th>所属会员</th>
                <th>产品名称</th>
                <th>订单金额</th>
                <th>现金支付</th>
                <th>订单类型</th>
                <th>状态</th>
                <th>下单时间</th>
                <th>操作</th>
              </tr>
            </thead>
            <tbody>
              {if !empty($list)} {foreach name="list" item="v"}
              <tr data-id="{$v.id}">
                <td>{$v.id}</td>
                <td>{$v.order_number}</td>
                <td>{$v.user}</td>
                <td>{$v.proname}</td>
                <td>{$v.money}</td>
                <td>{$v.cash}</td>
                <td>{$v.type}</td>
                <td>{$v.status}</td>
                <td>{$v.create_time}</td>
                <td>
                  <!-- <a href="{:url('admin/Finance/detailsinfo',['id'=>$v['id']])}">查看</a> -->
                </td>
              </tr>
              {/foreach} {/if}
            </tbody>
          </table>
        </div>
      </div>
    </div>
  </div>
</section>
{/block} {block name='js'}
<script>
  $('.tableData').DataTable({
    'paging': true,
    'fixedHeader': true,
    'lengthChange': false,
    'searching': true,
    'ordering': true,
    'info': true,
    'autoWidth': false,
    'deferRender': true,
    'processing': true,
    "order": [
      [0, "desc"]
    ],
  });
</script>
{/block}